<template>
	<div>父组件
	<Child @sendmsg="getMsg"></Child>
	{{info}}
	</div>
</template>

<script>
	import Child from './child'
	export default{
		name:"parent",
		data(){
			return{
				info:""
			}
		},
		components:{
			Child
		},
		methods:{
			getMsg(data){
				this.info=data;
				// console.log(data);
			}
		}
	}
</script>

<style>
</style>
